<%@page import="javafx.scene.control.Alert"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Library</title>
<!-- Custom Theme files -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all"/>
<script type="text/javascript" src="js/jquery.min.js"></script>
</head>
<body>
	<div class="login">
		<%
			application.setAttribute("name", "郑港");
			session.setAttribute("age", "11");
		%>		
		<h2>图书馆管理系统</h2>
		<div class="login-top">
			<h1>ReaderLogin</h1>
				<!--login-->
 				<%
					String error = (String)request.getAttribute("error");
					if(error !=null){
				%>
					<script>
						alert("用户名或者密码错误！");
					</script>
				<%				
					}
				%>
			<form action="LoginServlet" method="post">
				<input type="text" placeholder="UserName" name="uname" id="uname" />
				<input type="password" placeholder="Password" name="upwd" id="upwd" />
		    	<div class="forgot">
		    		<a href="#">forgot Password</a>
		    		<input type="submit" value="登录">
		    	</div>
		    </form>
		</div>
		<div class="login-bottom">
			<h3>New User &nbsp;<a href="register.jsp">注册</a>&nbsp HereG</h3>
		</div>
	</div>	
	<div class="copyright">
		<p>LanQiao &copy;Made in china</p>
	</div>
</body>
</html>